package org.ourgrid.broker.business.scheduler.workqueue.xmlcreator;

public class JobEndedXMLCreator implements XMLCreatorIF{

	/**
	 * <JOB_ENDED jobID='int' state='int' interestedID='String'/>
	 */
	public String getXML(int jobID, int state, String interestedID){
		
		StringBuffer buffer = new StringBuffer();
		
		buffer.append("<JOB_ENDED ");
		buffer.append("jobID='" + jobID + "' ");
		buffer.append("state='" + state + "' ");
		buffer.append("interestedID='" + interestedID + "' ");
		buffer.append("/>");
		
		return buffer.toString();
	}
}
